<?php
  include('lock.php');
  $sql=$_POST['query'];
  $location=$_POST['location'];
  mysql_query($sql);    
  header("Location: $location");
?>